package com.choichumgming.rentcat.service;

import com.choichumgming.rentcat.common.api.CommonResult;
import com.choichumgming.rentcat.model.UmsMemberReceiveAddress;
import com.choichumgming.rentcat.service.hystrix.UmsMemberReceiveAddressFeignApiHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "rentcat-provider-ums", fallback = UmsMemberReceiveAddressFeignApiHystrix.class)
public interface UmsMemberReceiveAddressFeignApi {

    /**
     * 根据id获取详细地址
     * @return CommonResult<List<UmsMemberReceiveAddress>>
     */
    @RequestMapping(value = "api/address/item")
    CommonResult<UmsMemberReceiveAddress> getItem(@RequestParam("addressId") Long addressId);


}
